﻿using BigBank.Contracts.Authorization.V1.Messages;
using BigBank.Contracts.Base.V1.Messages;

namespace BigBank.Contracts.Authorization.V1
{
    namespace Clients
    {
        partial class AuthorizationServiceClient
        {
            public bool IsAuthorized(BaseServiceRequest request)
            {
                return Service.AuthorizeRequest(new AuthorizeRequestRequest
                                                    {
                                                        Request = request
                                                    }).IsAuthorized;
            }
        }
    }
}